package com.loopy.fruns.entity;

import java.util.List;

public class Page<T> {
    public static final  Integer PAGE_SIZE=3;
    //第几页
    private Integer pageNo;
    //每一页数量
    private Integer pageSize=PAGE_SIZE;
    //总页数
    private Integer pageToatlCount;
    //总记录条数
    private Integer pageRow;
    private List<T> items;
    private String url;

//    public Page(Integer pageNo, Integer pageSize, Integer pageToatlCount, Integer pageRow, List<T> items, String url) {
//        this.pageNo = pageNo;
//        this.pageSize = pageSize;
//        this.pageToatlCount = pageToatlCount;
//        this.pageRow = pageRow;
//        this.items = items;
//        this.url = url;
//    }

    @Override
    public String toString() {
        return "Page{" +
                "pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", pageToatlCount=" + pageToatlCount +
                ", pageRow=" + pageRow +
                ", items=" + items +
                ", url='" + url + '\'' +
                '}';
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageToatlCount() {
        return pageToatlCount;
    }

    public void setPageToatlCount(Integer pageToatlCount) {
        this.pageToatlCount = pageToatlCount;
    }

    public Integer getPageRow() {
        return pageRow;
    }

    public void setPageRow(Integer pageRow) {
        this.pageRow = pageRow;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
